// 员工薪酬-
import serveUrl from '@/config_xc/serverAddress'; // 接口域名列表
import axios from '@/config_xc/http'; // 导入http中创建的axios实例

const requestList = {
  //年终奖报表
  GetAnnualBonusReport(params) {
    return axios.get(`${serveUrl.cs}/AnnualBonus/GetAnnualBonusView`, { params });
  },
  //添加年终奖
  GetaddAnnualBonus(data) {
    return axios.post(`${serveUrl.cs}/AnnualBonus/AddAnnualBonus`, data);
  },
  //删除年终奖
  GetdelAnnualBonus(id) {
    return axios.delete(`${serveUrl.cs}/AnnualBonus/DeleteAnnualBonus/${id}`);
  },
  //填写年终奖明细
  GeteditAnnualBonus(params) {
    return axios.get(`${serveUrl.cs}/AnnualBonus/FillAnnualBonusDetailView`, { params });
  },
  //年终奖明细引入人员
  GetuserDetailAnnualBonus(data) {
    return axios.post(`${serveUrl.cs}/AnnualBonus/IntroduceAnnualBonus`, data);
  },
  //年终奖明细引入人员列表
  GetuserListAnnualBonus(params) {
    return axios.get(`${serveUrl.cs}/AnnualBonus/IntroduceRosterUsers`, { params });
  },
  //年终奖导入模板
  templateUrl: `${serveUrl.cs}/ExcelDownloadBoard/年终奖导入模板.xls`,
  //保存年终奖详情
  GetsaveDetailAnnualBonus(data) {
    return axios.post(`${serveUrl.cs}/AnnualBonus/SaveAnnualBonusItem`, data);
  },
  //删除人员年终奖
  GetdelUserAnnualBonus(params) {
    return axios.delete(`${serveUrl.cs}/AnnualBonus/DeleteAnnualBonus`, { params });
  },
  //年终奖导出
  expostAnnualBonus(params) {
    return axios.get(`${serveUrl.cs}/AnnualBonus/AnnualBonusExport`, { params });
  },
  //年终奖导入
  importAnnualBonus(abId, data) {
    return axios.post(`${serveUrl.cs}/AnnualBonus/AnnualBonusImport?abId=${abId}`, data);
  },
  //年终奖报表打印
  PrintAnnualBonus(params) {
    return axios.get(`${serveUrl.cs}/AnnualBonus/AnnualBonusPrint`, { params });
  },

  //员工薪酬
  Getaddxinchou(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetPeripheryUserSalaryViews`, { params });
  },
  // 点击定薪
  Getwageincreaserecord(data) {
    return axios.post(`${serveUrl.cs}/UserSalary/AddUserSalary`, data);
  },
  // 点击调薪
  Getclickincreaserecord(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetUserSalaryAdjustmentView`, { params });
  },
  //员工薪酬点击详情
  GetxinchouDetail(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetUserSalaryDetailView`, { params });
  },
  // 调薪记录
  Getrecord(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetSalaryRecordView`, { params });
  },
  // 定调薪记录详情
  GetrecordDetail(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetSalaryRecordItemDetailView`, { params });
  },
  // 获取基本工资项
  GetBasicsalary(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/GetSalaryItemTenantItemView`, { params });
  },
  //员工薪酬导出
  expostxinchouHistory(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/UserSalaryExport`, { params });
  },
  //定调薪记录导出
  expostHistory(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/SalaryRecordExport`, { params });
  },
  //薪酬分析
  Analysiscompensation(params) {
    return axios.get(`${serveUrl.cs}/InitData/GetCompensationService`, { params });
  },
  //定调新模板下载
  templatecompensation(params) {
    return axios.get(`${serveUrl.cs}/UserSalary/SalaryDownloadTemplate`, { params });
  },
  //定调新导入
  importcompensation(type, subId, data) {
    return axios.post(`${serveUrl.cs}/UserSalary/UserSalaryImport?type=${type}&subId=${subId}`, data);
  },

};
export default requestList;